package com.healthy.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.medical.mapper.PhysicalExamItemsMapper;
import com.healthy.medical.domain.PhysicalExamItems;
import com.healthy.medical.service.IPhysicalExamItemsService;

/**
 * 体检项目Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class PhysicalExamItemsServiceImpl implements IPhysicalExamItemsService 
{
    @Autowired
    private PhysicalExamItemsMapper physicalExamItemsMapper;

    /**
     * 查询体检项目
     * 
     * @param id 体检项目主键
     * @return 体检项目
     */
    @Override
    public PhysicalExamItems selectPhysicalExamItemsById(Long id)
    {
        return physicalExamItemsMapper.selectPhysicalExamItemsById(id);
    }

    /**
     * 查询体检项目列表
     * 
     * @param physicalExamItems 体检项目
     * @return 体检项目
     */
    @Override
    public List<PhysicalExamItems> selectPhysicalExamItemsList(PhysicalExamItems physicalExamItems)
    {
        return physicalExamItemsMapper.selectPhysicalExamItemsList(physicalExamItems);
    }

    /**
     * 新增体检项目
     * 
     * @param physicalExamItems 体检项目
     * @return 结果
     */
    @Override
    public int insertPhysicalExamItems(PhysicalExamItems physicalExamItems)
    {
        return physicalExamItemsMapper.insertPhysicalExamItems(physicalExamItems);
    }

    /**
     * 修改体检项目
     * 
     * @param physicalExamItems 体检项目
     * @return 结果
     */
    @Override
    public int updatePhysicalExamItems(PhysicalExamItems physicalExamItems)
    {
        return physicalExamItemsMapper.updatePhysicalExamItems(physicalExamItems);
    }

    /**
     * 批量删除体检项目
     * 
     * @param ids 需要删除的体检项目主键
     * @return 结果
     */
    @Override
    public int deletePhysicalExamItemsByIds(Long[] ids)
    {
        return physicalExamItemsMapper.deletePhysicalExamItemsByIds(ids);
    }

    /**
     * 删除体检项目信息
     * 
     * @param id 体检项目主键
     * @return 结果
     */
    @Override
    public int deletePhysicalExamItemsById(Long id)
    {
        return physicalExamItemsMapper.deletePhysicalExamItemsById(id);
    }
}
